﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Pixysoft.Framework.Configurations
{
    public interface IHtmlDivCollection : IEnumerable<IHtmlDiv>, IEnumerator<IHtmlDiv>
    {
        IHtmlDiv this[int index] { get;}

        int Count { get;}

        /// <summary>
        /// 根据路径搜索
        /// </summary>
        /// <param name="path"></param>
        /// <returns></returns>
        IHtmlDiv Search(string path);

        IHtmlDiv[] SearchByClass(string classid);

        IHtmlDiv[] SearchById(string id);

        /// <summary>
        /// 序列化
        /// </summary>
        /// <returns></returns>
        string Serialize();
    }
}
